package com.mdd.front.validate;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * 发放优惠券优惠券参数
 * @author panweiliang
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CouponUseParam extends BaseParam {


    @NotNull(message = "receiveId不能为空", groups = {create.class, update.class})
    private Integer receiveId;

    @NotNull(message = "orderId不能为空", groups = {create.class, update.class})
    private Integer orderId;

}
